package cn.yj.consumer;

import cn.yj.consumer.service.TestService;
import cn.yj.frame.annotation.EnableYJRpc;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.HashMap;

/**
 * @author 永健
 * @since 2022-01-18 17:27
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableYJRpc
@RestController
@RequestMapping("/consumer")
public class App {

    @Resource
    private TestService testService;

    @GetMapping
    public Object ok(){
        return testService.test();
    }

    public static void main(String[] args) {
        SpringApplication.run(App.class,args);
    }
}
